home *** CD-ROM | disk | FTP | other *** search
- <DOMSymbolItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ns.adobe.com/xfl/2008/" name="itemButton_mc" itemID="4783a19d-00000010" sourceLibraryItemHRef="Symbol 3" lastModified="1307373002" lastUniqueIdentifier="1">
- <timeline>
- <DOMTimeline name="itemButton_mc">
- <layers>
- <DOMLayer name="Layer 3" color="#FFFF4F">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <Actionscript>
- <script><![CDATA[stop();
-
- var myResourcesLoader:LoadVars = new LoadVars();
-
- var myPath = "";
-
- var imClicked = false;
-
- myResourcesLoader.onData = function(dat) {
- trace(dat);
- if (dat.indexOf("link") != -1) {
- trace("LINK DETECTED");
- trace("Loading Link Image at: "+myPath+"shot.jpg");
- _root.loadPictures(myPath,Array("/shot.jpg"));
-
- } else if (dat.indexOf("folder") == -1) {
- // VIDEO OR GALLERY
- resources = dat.split("-");
- resources.shift();
- for (r=0; r<resources.length; r++) {
- resources[r] = resources[r].indexOf("\n") != -1 ? resources[r].slice(0, -2) : resources[r];
- }
- trace("resource Loaded");
- if (dat.indexOf(".flv") != -1) {
- //_root.gotoAndStop("_videos");
- trace(resources);
-
- _root.setVideoResourcesList(resources);
- _root.setVideoPath(myPath);
- //_root.videoWindow.init()
- _root.loadVideo(resources,0);
-
- } else {
- //_root.gotoAndStop("_images");
- _root.loadPictures(myPath,resources);
- }
- } else {
- // OPEN FOLDER
- paths = dat.split("-");
- paths.shift();
- plat = System.capabilities.os;
- pcPath = "";
- macPath = "";
- for (p=0; p<paths.length; p++) {
- if (paths[p].toLowerCase().indexOf("mac") != -1) {
- macPath = paths[p].split("=")[1];
- } else {
- pcPath = myPath+_global.delim+paths[p].split("=")[1];
- }
- if (plat.toLowerCase().indexOf("win") != -1) {
- // SEND THE PC FOLDER
- _root.setOpenFolder(pcPath,0);
- } else {
- // SET THE MAC FOLDER
- // THE INT IS AN INDEX TO PLATFORM TYPE
- _root.setOpenFolder(macPath,1);
- }
- _root.loadPictures(myPath,Array("shot.jpg"));
- }
- }
- };
-
-
- this.onRelease = function() {
-
- trace(this.pPath);
- if (!imClicked) {
- _root.openFolderButton._visible = false;
- _root.openFolderMacPathIndicator._visible = false;
- _root.unClickActiveItems();
- imClicked = true;
- this.gotoAndStop(2);
- _root.stopVideo();
- // Resolve the path Ting
-
- // Links first cos its easy
- //if (this.pPath.indexOf("http://") != -1 || this.pPath.indexOf("https://") != -1) {
- //cPath = "discContents"+_global.delim+this.secPath+_global.delim+this.pPath;
- //myPath = cPath;
- //_root.loadInfoText(cPath);
- //
- //_root.setMainTitle(this.iName);
- //} else {
- cPath = mdm.Application.path+"discContents"+_global.delim+this.secPath+_global.delim+this.pPath;
- myPath = cPath;
- _root.loadInfoText(cPath);
- _root.setMainTitle(this.iName);
- myResourcesLoader.load(cPath+_global.delim+"resources.txt");
- //}
- }
- };]]></script>
- </Actionscript>
- <elements/>
- </DOMFrame>
- <DOMFrame index="1" keyMode="9728">
- <Actionscript>
- <script><![CDATA[stop();]]></script>
- </Actionscript>
- <elements/>
- </DOMFrame>
- </frames>
- </DOMLayer>
- <DOMLayer name="text" color="#4FFF4F" current="true" isSelected="true" autoNamed="false">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <elements>
- <DOMDynamicText name="itemName" width="119.95" height="13.8" antiAliasSharpness="16" antiAliasThickness="4" includeOutlines="true" isSelectable="false" variableName="iName" lineType="multiline">
- <matrix>
- <Matrix tx="2" ty="2"/>
- </matrix>
- <textRuns>
- <DOMTextRun>
- <characters>Item</characters>
- <textAttrs>
- <DOMTextAttrs aliasText="false" autoKern="false" size="11" bitmapSize="220" face="Akkurat-Bold" fillColor="#FFFFFF"/>
- </textAttrs>
- </DOMTextRun>
- </textRuns>
- </DOMDynamicText>
- </elements>
- </DOMFrame>
- <DOMFrame index="1" keyMode="9728">
- <elements>
- <DOMDynamicText name="itemName" width="119.95" height="13.8" antiAliasSharpness="16" antiAliasThickness="4" includeOutlines="true" isSelectable="false" variableName="iName" lineType="multiline">
- <matrix>
- <Matrix tx="2" ty="2"/>
- </matrix>
- <textRuns>
- <DOMTextRun>
- <characters>Item</characters>
- <textAttrs>
- <DOMTextAttrs aliasText="false" autoKern="false" size="11" bitmapSize="220" face="Akkurat-Bold" fillColor="#DAE102"/>
- </textAttrs>
- </DOMTextRun>
- </textRuns>
- </DOMDynamicText>
- </elements>
- </DOMFrame>
- </frames>
- </DOMLayer>
- <DOMLayer name="backer" color="#9933CC" autoNamed="false">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <elements>
- <DOMSymbolInstance libraryItemName="mainButtonBacker" name="">
- <matrix>
- <Matrix a="0.723541259765625" d="0.476577758789062" tx="-1.9" ty="0.75"/>
- </matrix>
- <transformationPoint>
- <Point x="86.95" y="17.55"/>
- </transformationPoint>
- <color>
- <Color alphaMultiplier="0"/>
- </color>
- </DOMSymbolInstance>
- </elements>
- </DOMFrame>
- <DOMFrame index="1" keyMode="9728">
- <elements>
- <DOMSymbolInstance libraryItemName="mainButtonBacker" name="">
- <matrix>
- <Matrix a="0.781478881835938" d="0.600006103515625" tx="-6.95" ty="-2.15"/>
- </matrix>
- <transformationPoint>
- <Point x="86.95" y="17.5"/>
- </transformationPoint>
- <color>
- <Color alphaMultiplier="0"/>
- </color>
- </DOMSymbolInstance>
- </elements>
- </DOMFrame>
- </frames>
- </DOMLayer>
- </layers>
- </DOMTimeline>
- </timeline>
- </DOMSymbolItem>